﻿using STHPMS1.ICore.I_Entity;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace STHPMS1.ICore.I_DAL.Repository
{
    public interface IDm_ModelgroupRepository : IDal
    {
        /// <summary>
        /// 获取所有模型
        /// </summary>
        /// <param name="predicate"></param>
        /// <returns></returns>
        DataTable GetAllModelGroups(string predicate);
        /// <summary>
        /// 通过ID获取模型
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IDm_Modelgroup GetModelById(string id);
        /// <summary>
        /// 获取路段某年的累计当量轴载
        /// </summary>
        /// <param name="segid"></param>
        /// <param name="year"></param>
        /// <returns></returns>
        double? GetSegEsalByYear(string segid, int year);
    }
}
